﻿/* 
 * author: www.cnblogs.com/luminji
 * date  : 2011/11/18
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Luminji.Infrastructure.DomainBase;
using Luminji.Infrastructure.UnitOfWork;

namespace Luminji.Infrastructure.RepositoryFramework
{
    public interface IRepository<T> where T : EntityBase
    {
        IUnitOfWork UnitOfWork { get;}

        T Find(object key);
        IList<T> Find();
        void Add(T item);
        void Remove(T item);
    }
    
}
